﻿namespace ToolMonitoring.WebApi.Core
{
	public class ApiResult<T>
	{
        public T? Data { get; set; }

        public bool Success { get; set; } = true;

        public string Message { get; set; }

        public static ApiResult<T> ErrorResult(string message)
        {
			return new ApiResult<T>
            {
				
				Success = false,
				Message=message
			};
		}
    }
}
